import request from '../../utils/Request'
import PageUtils from '../../utils/PageUtils'


export const saveDictItem = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/item/save',
        data: data
    })
}
export const createDictItem = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/item/create',
        data: data
    })
}
export const updateDictItem = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/item/update',
        data: data
    })
}

export const deleteDictItem = bId => {
    return request({
        method: 'get',
        url: '/api/platform/dict/item/delete/' + bId,
        params: {}
    })
}

export const listDictItemByDictId = bid => {
    return request({
        method: 'get',
        url: '/api/platform/dict/item/list/' + bid,
        params: {}
    })
}

export const listDictItemByDictCode = code => {
    return request({
        method: 'get',
        url: '/api/platform/dict/item/list/code/' + code,
        params: {}
    })
}


export const listDictItemByBuildingId = bid =>{
    return request({
        method: 'get',
        url: '/api/platform/dict/item/list/faculty/' + bid,
        params: {}
    })
}


